package org.grow.bmeans.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.math.BigDecimal;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@ApiModel(value = "Material")
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "Material")
public class Material {
    @TableId(value = "materialCode", type = IdType.INPUT)
    @ApiModelProperty(value = "")
    private String materialCode;

    @TableField(value = "description")
    @ApiModelProperty(value = "")
    private String description;

    /**
     * 条形码
     */
    @TableField(value = "barCode")
    @ApiModelProperty(value = "条形码")
    private String barCode;

    /**
     * 规格
     */
    @TableField(value = "specification")
    @ApiModelProperty(value = "规格")
    private String specification;

    /**
     * 参考单价
     */
    @TableField(value = "referPrice")
    @ApiModelProperty(value = "参考单价")
    private BigDecimal referPrice;

    @TableField(value = "chargeUnit")
    @ApiModelProperty(value = "")
    private String chargeUnit;

    @TableField(value = "producingArea")
    @ApiModelProperty(value = "")
    private String producingArea;

    @TableField(value = "abandoned")
    @ApiModelProperty(value = "")
    private Boolean abandoned;

    public static final String COL_MATERIALCODE = "materialCode";

    public static final String COL_DESCRIPTION = "description";

    public static final String COL_BARCODE = "barCode";

    public static final String COL_SPECIFICATION = "specification";

    public static final String COL_REFERPRICE = "referPrice";

    public static final String COL_CHARGEUNIT = "chargeUnit";

    public static final String COL_PRODUCINGAREA = "producingArea";

    public static final String COL_ABANDONED = "abandoned";
}